//
//  ReportTimeVC.m
//  Wallets Manager
//
//  Created by Nguyen Chi Cong on 10/30/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import "ReportTimeVC.h"

@implementation ReportTimeVC
@synthesize viewContent;
@synthesize scvContent;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    [scvContent setContentSize:viewContent.bounds.size];
    [scvContent addSubview:viewContent];
    scvContent.scrollEnabled = YES;
}

- (void)viewDidUnload
{
    [self setScvContent:nil];
    [self setViewContent:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

#pragma mark - IBAction
- (IBAction)backView:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)changeTimeMode:(id)sender {
    if(!changeTimeVC)
    {
        changeTimeVC = [[ChangeTimeVC alloc] initWithNibName:@"ChangeTimeVC" bundle:nil ];
    }
    [self presentModalViewController:changeTimeVC animated:YES];
}


@end
